<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery.onebyone.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/responsive.css" />
    <!-- custom CSS  -->
    <link rel="stylesheet" type="text/css" href=" <?php echo Yii::app()->request->baseUrl ; ?>/css/style.css"  />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/rbac.css" />
    <!--[endif]-->
    <?php
    //скрипты
    Yii::app()->clientScript->registerScriptFile(
        Yii::app()->assetManager->publish(
            Yii::getPathOfAlias('application.assets.js').'/jquery.min.js'
        )
    );
    Yii::app()->clientScript->registerScriptFile(
        Yii::app()->assetManager->publish(
            Yii::getPathOfAlias('application.assets.js').'/jquery.onebyone.min.js'
        )
    );
    Yii::app()->clientScript->registerScriptFile(
        Yii::app()->assetManager->publish(
            Yii::getPathOfAlias('application.assets.js').'/jquery.touchwipe.min.js'
        )
    );
    Yii::app()->clientScript->registerScriptFile(
        Yii::app()->assetManager->publish(
            Yii::getPathOfAlias('application.assets.js').'/js_func.js'
        )
    );


    ?>

    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    <script>
        $(function(){
            $('#obo_slider').oneByOne({
                className: 'oneByOne1',
                easeType: 'random',
                slideShow: true
            });

        })
    </script>
</head>
<body>
<div class="wraper">
    <header class="header">
        <nav>
            <!-- top menu -->
            <?php $this->widget('zii.widgets.CMenu',array(
                'activateParents'=>true,
                'items'=>array(
                    array('label'=>'Home', 'url'=>array('/site/index')),
                    array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
                    array(   'label'=>'Shop', 'url'=>array('/shop/'),
                        'items'=>array(
                            array( 'label'=>'Catalog', 'url'=>array('/shop/')),
                            array('label'=>'Full Catalog', 'url'=>array('/')),
                        )
                    ),
                    array('label'=>'Contact', 'url'=>array('/site/contact')),
                    array('url'=>Yii::app()->getModule('user')->loginUrl, 'label'=>Yii::app()->getModule('user')->t("Login"), 'visible'=>Yii::app()->user->isGuest),
                    array('url'=>Yii::app()->getModule('user')->logoutUrl, 'label'=>Yii::app()->getModule('user')->t("Logout").' ('.Yii::app()->user->name.')', 'visible'=>!Yii::app()->user->isGuest),
                    array('label'=>' Административная панель', 'url'=>array('/adminzone'), 'visible'=>Yii::app()->getModule('user')->isAdmin())
                ),
            ));
            ?>
            <!-- /top menu -->

        </nav>
    </header>
</div>
<!-- one bt one slider -->
<div class="wrape homeone">
    <div class="fallback"><img src="<?php echo Yii::app()->baseUrl; ?>/images/sliders/home_page_1_fallback_1.jpg" alt="" /></div>
    <div id="obo_slider">
        <div class="oneByOne_item">
            <img src="<?php echo Yii::app()->baseUrl; ?>/images/sliders/home1_slide_1.png" class="wp1_3 slide1_bot" alt="">
        </div>
        <div class="oneByOne_item">
            <img src="<?php echo Yii::app()->baseUrl; ?>/images/sliders/home7_slide_2.png" class="wp1_3 wp1_left slide2_bot" alt="">
        </div>
        <div class="oneByOne_item">
            <img src="<?php echo Yii::app()->baseUrl; ?>/images/sliders/home7_slide_3.png" class="wp1_3 slide2_bot" alt="">
        </div>
        <div class="oneByOne_item">
            <img src="<?php echo Yii::app()->baseUrl; ?>/images/sliders/home7_slide_4.png" class="wp1_3 slide3_bot" alt="">
        </div>

    </div>
</div>
<!-- /one bt one slider -->

<div class="content_block">
    <!-- text bar -->
    <div class="text_bar">
        <div class="wraper">
            <?php if(isset($this->breadcrumbs)):?>
                <?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
            <?php endif?>
            <?php echo $content; ?>
        </div>
    </div>
    <!-- /text bar -->
    <div class="wraper">
        <!-- features_block -->
        <div class="features_block">
            <ul>
                <li class="design">
                    <a class="circle_link" href="#">&nbsp;</a>
                    <h4><span>Design</span></h4>
                    <p>Lid est laborum dolo rumes fugats untras. Et harums ser quidem sit rerum facilis est dolores nemis uns.  </p>
                </li>
                <li class="flexible">
                    <a class="circle_link" href="#">&nbsp;</a>
                    <h4><span>Flexible</span></h4>
                    <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium dolorem que laudantium totam</p>
                </li>
                <li class="support">
                    <a class="circle_link" href="#">&nbsp;</a>
                    <h4><span>Support</span></h4>
                    <p>Nemo enim ipsam voluptatem uns quia voluptas sit aspernatur aut odit aut fugit, sed quia consequunturs.</p>
                </li>
                <li class="easy">
                    <a class="circle_link" href="#">&nbsp;</a>
                    <h4><span>Easy To Edit</span></h4>
                    <p>Neque porro qusquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit sed quia nons.</p>
                </li>
                <li class="seo">
                    <a class="circle_link" href="#">&nbsp;</a>
                    <h4><span>SEO Ready</span></h4>
                    <p>Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis voluptas uns sadips doloreusi.</p>
                </li>
            </ul>
        </div>
        <!-- /features_block -->
    </div>
</div>

<!-- footer -->
<!-- social block -->
<div class="social_block">
    <div class="wraper">
        <p>Stay connected with us in your favorite flavor!</p>
        <ul>
            <li class="facebook"><a href="#">Facebook</a></li>
            <li class="twitter"><a href="#">Twitter</a></li>
            <li class="linkedin"><a href="#">LinkedIn</a></li>
            <li class="rss"><a href="#">RSS</a></li>
            <li class="dribbble"><a href="#">Dribbble</a></li>
            <li class="google"><a href="#">Google+</a></li>
        </ul>
    </div>
</div>
<!-- /social block -->
<!-- copyright -->
<div class="copyright">
    <div class="wraper">
        <p><span>Copyright &copy; <?php echo date('Y'); ?> by My Company</span>All Rights Reserved<a href="#">RSS</a><a href="#">Comments</a></p>
        <a class="top" href="#">Back to the top</a>
    </div>
</div>
</body>
</html>
